package edu.uwm.RobberKnight.View;

import java.awt.BorderLayout;
import java.awt.Font;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;

public class AboutView extends JPanel {

	private static final long serialVersionUID = -1643271893091678002L;
	private boolean close = false;
	private JTabbedPane tabbedPane;
	/**
	 * Create the panel.
	 */
	public AboutView() {
		//setLayout(new BorderLayout(0, 0));
		
		tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		add(tabbedPane);
		
		JPanel tilePanel1 = new JPanel();
		tabbedPane.addTab("About", null, tilePanel1, null);
		tilePanel1.setLayout(new BorderLayout(0, 0));
		JTextArea textArea1 = new JTextArea();
		textArea1.setBounds(0, 0, 550, 500);
		textArea1.setText("Robber Knights Game \n\n\t Version: 1.0 \n\t Release Date: 04/18/2012 \n\t Code license: Mozilla Public License 1.1");
		textArea1.setEditable(false);
		textArea1.setLineWrap(true);
		textArea1.setFont(new Font("arial",Font.PLAIN, 12));
		textArea1.setWrapStyleWord(true);
		tilePanel1.add(textArea1);

		
		JPanel tilePanel2 = new JPanel();
		tabbedPane.addTab("Authors", null, tilePanel2, null);
		JTextArea textArea2 = new JTextArea();
		textArea2.setText("Group 1: \n" +
				"\tJose Antony \n" +
				"\tNicholas Wessing \n" +
				"\tRicardo Iniguez \n" +
				"\tSeyed Soheil Moosavinasab \n" +
				"\tWeston Timmers \n" );
		textArea2.setEditable(false);
		textArea2.setWrapStyleWord(true);
		textArea2.setFont(new Font("arial",Font.PLAIN, 12));
		textArea2.setLineWrap(true);
		tilePanel2.setLayout(new BorderLayout(0, 0));
		tilePanel2.add(textArea2);
		


	}
	
	public boolean isClosed() {
		return close;
	}
	
	public void openInst() {
		close = false;
	}
}
